package org.aplikator.client.command;

import java.io.Serializable;

import org.aplikator.client.panels.ContentsPanel;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.Widget;

@SuppressWarnings("serial")
public abstract class BindableCommand implements Command, Serializable, Cloneable {


    protected transient ContentsPanel mainPanel;
    protected transient Widget contents;

    protected BindableCommand() {

    }


    public Command bindMainPanel(ContentsPanel mainPanel) {
        this.mainPanel = mainPanel;
        return this;
    }

    public abstract void execute();

}